package com.mall.service.impl;

import com.mall.dao.IUserDao;
import com.mall.domain.User;
import com.mall.service.IUserService;
import com.mall.util.TokenUtil;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.HashMap;
import java.util.Map;

/**
 * 用户的业务层接口实现类
 * @author : Bei-Zhen
 * @date : 2020-12-25 19:46
 */
@Service("userService")
public class UserServiceImpl implements IUserService {

    @Autowired
    private IUserDao userDao;

    /**
     * 验证登录
     * @param loginUser
     * @return
     */
    @Override
    public User login(User loginUser){
        return userDao.login(loginUser);
    }
}
